﻿using ERPSystem.Common.BaseEntitys;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPSystem.Common.Domains.Delivergoods
{
    /// <summary>
    /// 发货通知单表
    /// </summary>
    [SugarTable("Shippingnote")]
    public class Shippingnote : BaseEntity
    {
        /// <summary>
        /// 主键编号
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int ShippingnoteId { get; set; }
        /// <summary>
        /// 单据编码
        /// </summary>
        public string DocumentNumber { get; set; }
        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime Documentdate{ get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string DocumentStatus { get; set; }
        /// <summary>
        /// 业务状态
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string BusinessStatus { get; set; }
        /// <summary>
        /// 业务类型
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string BusinessType { get; set; }
        /// <summary>
        /// 仓库
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string Stash { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string Customername { get; set; }
        /// <summary>
        /// 进仓编号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string Warehouseentry { get; set; }
        /// <summary>
        /// 交付日期
        /// </summary>
        
        public DateTime Deliverydate { get; set; }=DateTime.Now;
        /// <summary>
        /// 收货人
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string Consignee { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string ConsigneePhone { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string ConsigneeAddress { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string ConsigneeInfo { get; set; }
        /// <summary>
        /// 运费
        /// </summary>
        public decimal Freight { get; set; }
        /// <summary>
        /// 装卸费
        /// </summary>
        public decimal Handlingcharges { get; set; }

        /// <summary>
        /// 退货通知单Id
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int ReturnNoticesId { get; set; }
        /// <summary>
        /// 销售订单Id
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int SalesOrderId { get; set; }
        /// <summary>
        /// 件数
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int Numberpack { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string Quantity { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]
        public string ShippingnoteRemark { get; set; }
        /// <summary>
        /// 审核
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public bool Examine { get; set; }
        /// <summary>
        /// 流水号 外键
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "Nvarchar(50)")]
        public string Serialnumber { get; set; }


    }
}
